package com.matt.domain.course;

import com.matt.commons.model.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * *******************************
 * Created by Ron.
 * form com.matt
 * on 2018/11/7
 * *******************************
 */
@Entity
@Table(name = "video_temp")
@Data
@EqualsAndHashCode(callSuper = true)
public class VideoTemp extends Model{
    private String videoUrl;

    public static VideoTemp of(String videoUrl){
        VideoTemp temp = new VideoTemp();
        temp.setVideoUrl(videoUrl);
        return temp;
    }
}
